@echo off
set my_root=%~dp0
@echo #
@echo # Root Folder: %my_root%
@echo #

IF "%1"=="" (
	goto USAGE
)

@REM need the confirmation before copying files.
@echo # The tool will copy changes files
@echo #   From: %my_root%
@echo #   To:   %1
CHOICE /C YN /N /M "# Press Y to continue, N to cancel [Y/N]: "
IF %ERRORLEVEL% EQU 1 (
	robocopy "%my_root%\Development\.." "%1" *.* /S /XA:RH /XD Backup /XD Builds /XD changes /XD Documents /XD bin /XD obj /XD Files /XD Log /XF *.*scc /XF *.user /XF *.cache
	goto END
)

:NO_COPY
@echo #
@echo # No files were copied.
@echo #
goto END

:USAGE
@echo This batch file will copy changed files to the specified destination folder.
@echo.
@echo Usage:
@echo     %0 d:\dev\changes
@echo.
goto END

:END
set my_root=
@REM This is the end of this batch file.
